package freezzz.client.EventWidget;


import com.google.gwt.user.client.rpc.IsSerializable;

import java.util.Date;


public class TimelineEvent implements IsSerializable {

    private String humanTime;
    private String title;
    private String content;
    private EventType type;
    private Date date;

    public TimelineEvent () {
    }

    public TimelineEvent ( Date date, String title, String content, EventType type ) {
        humanTime = date.getHours ()+":"+date.getMinutes ();
        this.title = title;
        this.content = content;
        this.type = type;
        this.date = date;
    }

    public String getHumanTime () {
        return humanTime;
    }

    public String getTitle () {
        return title;
    }

    public String getContent () {
        return content;
    }

    public EventType getType () {
        return type;
    }

    public Date getDate () {
        return date;
    }
}
